﻿<%@ Page Title="" Language="C#"  Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.ViewModels.MediaObjectViewModel>" %>
<%@ Import Namespace="Beeldbankmvc.Code" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
	<title>FullPage</title>
	<script type="text/javascript" src="<%= AppHelper.getContent("~/Scripts/jquery-2.1.1.min.js")%>"></script>

	<!-- this javascript adds a print link -->
	<script src="<%= AppHelper.getContent("~/Content/js/OptionalScripts.js")%>" type="text/javascript"></script>
</head>
<body>

	<div>
		<%if (Request["type"].Equals("show"))
		  { %> 
			<script type="text/javascript">
				$.get('<%=Beeldbankmvc.Helpers.Tools.getCounterView()%><%= Model.MediaObject.Id %>?ts=<%= DateTime.Now.Millisecond.ToString() %>');
			</script>  
			<%= Beeldbankmvc.Helpers.Tools.getFullImage(Model.MediaObject)%>
		<% }
		  else
		  {  %>     
			<script type="text/javascript">
				$.get('<%=Beeldbankmvc.Helpers.Tools.getCounterView()%><%= Model.MediaObject.Id %>?ts=<%= DateTime.Now.Millisecond.ToString() %>');
			</script>  
			<%= Beeldbankmvc.Helpers.Tools.getFullDownloadLink(Model.MediaObject)%>  
		  <%} %>
	</div>
</body>
</html>
